package com.acme.bankapp.domain;

public class SavingAccount extends AbstractAccount {
	protected int id;
	public SavingAccount(final double amount) {
		super(amount);
	}

	
	public void deposit(double amount) {
		balance += amount;
	}

	public void withdraw(double amount) {
		if (balance >= amount) {
			balance -= amount;
		} else {
			
		}
	}
	public double maximumAmountToWithdraw() {
		return balance;
	}
}
